package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author RJ
 * @date 2022/10/13 15:59
 */
@TableName("sys_power")
public class PowerBean {
    @TableId(value = "power_id", type = IdType.AUTO)
    private Integer powerId;
    @TableField("power_name")
    private String powerName;
    @TableField("power_uri")
    private String powerURI;
    @TableField(exist = false)
    private UserBean userBean;

    public PowerBean() {
    }

    public PowerBean(String powerName, String powerURI, UserBean userBean) {
        this.powerName = powerName;
        this.powerURI = powerURI;
        this.userBean = userBean;
    }

    public Integer getPowerId() {
        return powerId;
    }

    public void setPowerId(Integer powerId) {
        this.powerId = powerId;
    }

    public String getPowerName() {
        return powerName;
    }

    public void setPowerName(String powerName) {
        this.powerName = powerName;
    }

    public String getPowerURI() {
        return powerURI;
    }

    public void setPowerURI(String powerURI) {
        this.powerURI = powerURI;
    }

    public UserBean getUserBean() {
        return userBean;
    }

    public void setUserBean(UserBean userBean) {
        this.userBean = userBean;
    }

    @Override
    public String toString() {
        return "PowerBean{" +
                "powerId=" + powerId +
                ", powerName='" + powerName + '\'' +
                ", powerURI='" + powerURI + '\'' +
                ", userBean=" + userBean +
                '}';
    }
}
